package com_5;

import java.io.*;
import java.net.Socket;

public class ClientTCP {//
    public static void main(String[] args) throws IOException {//
        Socket sc = new Socket("192.168.29.59", 5000);//
        BufferedReader br = new BufferedReader(new FileReader("UDP\\s.text"));//
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(sc.getOutputStream()));//
        String line;//
        while ((line = br.readLine()) != null) {//
            bw.write(line);//
            bw.newLine();//
            bw.flush();//
        }
        sc.shutdownOutput();//
        BufferedReader br1 = new BufferedReader(new InputStreamReader(sc.getInputStream()));//
        String s = br1.readLine();//
        System.out.println("服务器反馈是:" + s);//
        br.close();//
        bw.close();//
        br1.close();//
        sc.close();//
    }
}
